package com.excilys.formation.projet.ebanking.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.excilys.formation.projet.ebanking.dao.api.ICompteDao;
import com.excilys.formation.projet.ebanking.modele.Compte;
import com.excilys.formation.projet.ebanking.service.api.ICompteService;

@Service("compteService")
@Transactional(readOnly = true)
public class CompteServiceImpl implements ICompteService {
	
	@Autowired
	ICompteDao compteDao;
	
	@Override
	public Compte getCompte(int id) {
		return compteDao.getCompte(id);
	}
	
}
